package view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JButton;

@SuppressWarnings("serial")
public class PanelVertragAuswaehlen extends JPanel {
	private JTable table;
	String[] columnNames = { "First Name", "Last Name", "Sport", "# of Years",
			"Vegetarian" };

	Object[][] rowData = {
			{ "Kathy", "Smith", "Snowboarding", new Integer(5),
					new Boolean(false) },
			{ "John", "Doe", "Rowing", new Integer(3), new Boolean(true) },
			{ "Sue", "Black", "Knitting", new Integer(2), new Boolean(false) },
			{ "Jane", "White", "Speed reading", new Integer(20),
					new Boolean(true) },
			{ "Joe", "Brown", "Pool", new Integer(10), new Boolean(false) } };

	public PanelVertragAuswaehlen() {
		setLayout(null);

		table = new JTable(rowData, columnNames);
		table.setBounds(32, 50, 487, 267);
		add(table);

		JButton btnVertragWhlen = new JButton("Vertrag w\u00E4hlen");
		btnVertragWhlen.setBounds(35, 323, 121, 23);
		add(btnVertragWhlen);
		btnVertragWhlen.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub

			}
		});

		JButton btnAbbrechen = new JButton("Abbrechen");
		btnAbbrechen.setBounds(166, 323, 89, 23);
		add(btnAbbrechen);
		btnAbbrechen.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub

			}
		});
	}

}